package com.cc.demo.repository;

import com.cc.demo.entity.TransactionEventMessage;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.Optional;

public interface TransactionEventMessageRepository extends JpaRepository<TransactionEventMessage, Integer> {

    List<TransactionEventMessage> findTransactionEventMessageByStatus(String status);

    Optional<TransactionEventMessage> findTransactionEventMessageByBusinessKeyAndDomainAndOwner(String businessKey, String domain, String owner);

}
